<div class="type-list" id="sele_frame" style="display:none">
	<div class="acter" style="margin-bottom:1rem">
		    <article class="data-wrap">
		    <form name="dataForm">
		        <h3>组织架构</h3>
		        <div class="data-input">
		            <section class="flex-justify">
		                <span>组织架构选择</span>
		                <select name="typeboard">
		                    <option value="执行董事">执行董事</option>
		                    <option value="董事会">董事会</option>
		                </select>
		            </section>
		            <section class="flex-align identity">
		                <span>执行董事身份证明</span>
		            </section>
		            <div name="actdirector">
	            		<div class="flex-justify" style="width:100%;height:0.75rem;background:#eee;margin-bottom:0.6rem;">
	            			<div style="margin-left:0.3rem;font-weight:bold;">执行董事身份证明</div>
	            		</div>
			            <div class="identity-upload clearfix">
			                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
			                    <input type="file" id="actdirector" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
			                    <input type="hidden" name="actdirector[]" value=""/>
			                </div>
			                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
			                    <input type="file" id="bactdirector" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
			                    <input type="hidden" name="bactdirector[]" value=""/>
			                </div>
			            </div>
			        </div>
		            <div class="add-border"><a href="javascript:void(0)" onclick="add_actdirector(this)" class="add-investor">添加执行董事</a></div>
		            <section class="flex-align">
		                <span>法定代表人姓名</span>
		                <input type="text" class="flex-1" name="fdname" placeholder="请输入法定代表人姓名"/>
		            </section>
		            <section class="flex-align">
		                <span>法定代表人电话</span>
		                <input type="text" class="flex-1" name="fdphone" placeholder="请输入法定代表人电话"/>
		            </section>
		            <section class="flex-align identity">
		                <span>法定代表人身份证明</span>
		            </section>
		            <div class="identity-upload clearfix">
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="juridical" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="juridical" value=""/>
		                </div>
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="bjuridical" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="bjuridical" value=""/>
		                </div>
		            </div>
		            <section class="flex-align identity add-padding">
		                <span>监事身份证明</span>
		            </section>
		            <div class="identity-upload clearfix">
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="supervisor" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="supervisor" value=""/>
		                </div>
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="bsupervisor" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="bsupervisor" value=""/>
		                </div>
		            </div>
		            <section class="flex-align identity add-padding">
		                <span>财务负责人身份证明</span>
		            </section>
		            <div class="identity-upload clearfix">
		                <div style="background:url('__PUBLIC__/home/images/upload-positive.png') no-repeat center;background-size:contain;">
		                    <input type="file"  id="finance" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                	<input type="hidden" name="finance" value=""/>
		                </div>
		                <div style="background:url('__PUBLIC__/home/images/upload-other-side.png') no-repeat center;background-size:contain;">
		                    <input type="file"  id="bfinance" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                	<input type="hidden" name="bfinance" value=""/>
		                </div>
		            </div>
		            <section class="flex-align add-padding">
		                <span>企业联络人姓名</span>
		                <input type="text" class="flex-1" name="qlname" placeholder="请输入企业联系人姓名"/>
		            </section>
		            <section class="flex-align">
		                <span>企业联络人电话</span>
		                <input type="text" class="flex-1" name="qlphone" placeholder="请输入法定联系人电话"/>
		            </section>
		            <section class="flex-align">
		                <span>企业联络人邮箱</span>
		                <input type="text" class="flex-1" name="qlemail" placeholder="请输入企业联系人邮箱"/>
		            </section>
		            <section class="flex-align identity">
		                <span>企业联络人身份证明</span>
		            </section>
		            <div class="identity-upload add-border clearfix">
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="linkman" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="linkman" value=""/>
		                </div>
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="blinkman" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="blinkman" value=""/>
		                </div>
		            </div>
		            <section class="flex-align identity">
		                <span>经理身份证明</span>
		            </section>
		            <div class="identity-upload clearfix">
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="manager" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="manager" value=""/>
		                </div>
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="bmanager" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="bmanager" value=""/>
		                </div>
		            </div>
		        </div>
		    <a href="javascript:void(0)" onclick="save_typeboard(this)" class="next-page">下一步</a>
		    </form>
    	</article>
	</div>
	<div class="toper" style="display:none;margin-bottom:1rem;">
		<article class="data-wrap">
			<form name="dataForm">
	        <h3>组织架构</h3>
	        <div class="data-input">
	            <section class="flex-justify">
	                <span>组织架构选择</span>
	                <select name="typeboard">
	                    <option value="执行董事">执行董事</option>
	                    <option value="董事会" selected>董事会</option>
	                </select>
	            </section>
	            <section class="flex-align identity">
	                <span>董事长身份证明</span>
	            </section>
	            <div class="identity-upload clearfix">
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="topdirector" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="topdirector[]" value=""/>
	                </div>
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="btopdirector" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="btopdirector[]" value=""/>
	                </div>
	            </div>
	            <div name="director">
            		<div class="flex-justify" style="width:100%;height:0.75rem;background:#eee;margin-bottom:0.6rem;">
            			<div style="margin-left:0.3rem;font-weight:bold;">董事身份证明</div>
            		</div>
		            <div class="identity-upload clearfix">
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="director" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="director[]" value=""/>
		                </div>
		                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
		                    <input type="file" id="bdirector" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
		                    <input type="hidden" name="bdirector[]" value=""/>
		                </div>
		            </div>
	            </div>
	            <div class="add-border"> <a href="javascript:void(0)" onclick="add_director(this)" class="add-investor">添加董事</a></div>
	            <section class="flex-align identity">
	                <span>监事身份证明</span>
	            </section>
	            <div class="identity-upload clearfix">
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="dsupervisor" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="dsupervisor" value=""/>
	                </div>
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="bdsupervisor" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="bdsupervisor" value=""/>
	                </div>
	            </div>
	            <section class="flex-align add-padding identity">
	                <span>财务负责人身份证明</span>
	            </section>
	            <div class="identity-upload clearfix add-border">
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="dfinance" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="dfinance" value=""/>
	                </div>
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="bdfinance" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="bdfinance" value=""/>
	                </div>
	            </div>
	            <section class="flex-align">
	                <span>企业联络人姓名</span>
	                <input type="text" class="flex-1" name="qlname2" placeholder="请输入企业联络人姓名"/>
	            </section>
	            <section class="flex-align">
	                <span>企业联络人电话</span>
	                <input type="text" class="flex-1" name="qlphone2" placeholder="请输入企业联络人电话"/>
	            </section>
	            <section class="flex-align">
	                <span>企业联络人邮箱</span>
	                <input type="text" class="flex-1" name="qlemail2" placeholder="请输入企业联络人邮箱"/>
	            </section>
	            <section class="flex-align identity">
	                <span>企业联络人身份证明</span>
	            </section>
	            <div class="identity-upload clearfix">
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="dlinkman" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="dlinkman" value=""/>
	                </div>
	                <div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">
	                    <input type="file" id="bdlinkman" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>
	                    <input type="hidden" name="bdlinkman" value=""/>
	                </div>
	            </div>
	        </div>
	    	<a href="javascript:void(0)" onclick="save_typeboard(this)" class="next-page">下一步</a>
	    	</form>
	    </article>
	</div>
<script type="text/javascript">
$(function(){
	$('select[name=typeboard]').change(function(){
		if($(this).val() == '执行董事'){
			$('.acter').show();
			$('.toper').hide();
		}else if($(this).val() == '董事会'){
			$('.acter').hide();
			$('.toper').show();
		}
	})
})
function add_actdirector(obj){
	var str = '';
	str += '<div name="actdirector_add">';
	str += '<div class="flex-justify" style="width:100%;height:0.75rem;background:#eee;margin-bottom:0.6rem;">';
	str += '<div style="margin-left:0.3rem;font-weight:bold;">执行董事身份证明</div>';
	str += '<div style="width:0.75rem;text-align:center;color:#feb83d;font-size:0.65rem;" onclick="$(this).parents(\'div[name=actdirector_add]\').remove()">-</div>';
	str += '</div>';
    str += '<div class="identity-upload clearfix">';
    str += '<div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">';    
    str += '<input type="file" id="actdirector'+Math.round(Math.random()*1000)+'" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>';
    str += '<input type="hidden" name="actdirector[]" value=""/>';
    str += '</div>';
    str += '<div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">';
    str += '<input type="file" id="bactdirector'+Math.round(Math.random()*1000)+'" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>';
    str += '<input type="hidden" name="bactdirector[]" value=""/>';
    str += '</div>';
    str += '</div>';
    str += '</div>';
	$(obj).before(str);
}

function add_director(obj){
	var str = '';
	str += '<div name="director_add">';
	str += '<div class="flex-justify" style="width:100%;height:0.75rem;background:#eee;margin-bottom:0.6rem;">';
	str += '<div style="margin-left:0.3rem;font-weight:bold;">董事身份证明</div>';
	str += '<div style="width:0.75rem;text-align:center;color:#feb83d;font-size:0.65rem;" onclick="$(this).parents(\'div[name=director_add]\').remove()">-</div>';
	str += '</div>';
    str += '<div class="identity-upload clearfix">';
    str += '<div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">';
    str += '<input type="file" id="director'+Math.round(Math.random()*1000)+'" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>';
    str += '<input type="hidden" name="director[]" value=""/>';
    str += '</div>';
    str += '<div style="background:url(__PUBLIC__/home/images/upload-positive.png) no-repeat center;background-size:contain;">';
    str += '<input type="file" id="bdirector'+Math.round(Math.random()*1000)+'" name="up_pic" onchange="uploadImg(this,upload_img_back)"/>';
    str += '<input type="hidden" name="bdirector[]" value=""/>';
    str += '</div>';
    str += '</div>';
    str += '</div>';
    $(obj).before(str);
}

function save_typeboard(obj){
	$.post('{:U("saveGuideData")}',$(obj).parents('form[name=dataForm]').serializeArray(),function(data){
		console.log(data)
		var info = data.info;
		if(info.jinchukou == '1'){
			$('.jinchukou_yes').show()
			$('.jinchukou_no').hide()
		}else{
			$('.jinchukou_yes').hide()
			$('.jinchukou_no').show()
		}
	});
	nextPage();
}
</script>
</div>